<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>d1</title>
</head>
<body>
<div>
    <p><%=path%>
    </p><!-- /springmvc -->
    <p><%=basePath%>
    </p><!-- http://127.0.0.1:8080/springmvc/ -->
    <p>
        <a href="<%=path%>/demo/d2">表单测试1</a>
    </p>
    <p>
        <a href="<%=path%>/demo/d4">表单测试2</a>
    </p>
    <p>
        <a href="<%=path%>/demo/d6">json</a>
    </p>
</div>
</body>
</html>